package routers

import (
	"github.com/gin-gonic/gin"
	"my-gin-tiktok/app/controllers"
	"my-gin-tiktok/app/middlewares"
)

func InitUserRouter(router *gin.RouterGroup) {
	user := router.Group("user")
	user.POST("/register", controllers.Register)
	user.POST("/login", controllers.Login)
	user.Use(middlewares.JWTAuthMiddleware())
	user.GET("/info", controllers.Info)
	return
}
